var DiscountCtrl = dojo.declare(null, {
	//constructor/destructor
	constructor : discountCtrl_constructor,
	destroy : discountCtrl_destructor,
	
	//methods
	init : discountCtrl_init
});

function discountCtrl_constructor(){
}

function discountCtrl_destructor(){
}

function discountCtrl_init(){
	for (var i = 0; i < $("#dynamics #featured div").size(); i ++){
		var item = $("#dynamics #featured div:nth-child(" + (i + 1) + ")");
		item.animate({opacity : ".3"}, 0);
		item.mouseout(function(){
			$(this).stop().animate({opacity : ".3"});
		}).mouseover(function(){
			$(this).stop().animate({opacity : "1."});
		});
	}
}

if (dojo.getObject("discountCtrl") == null) discountCtrl = new DiscountCtrl();
$(document).ready(function(){
	discountCtrl.init();
});